# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=py3-bookkeeper
pkgver=4.17.1
pkgrel=0
pkgdesc="Python client for Apache Bookkeeper"
url="https://github.com/apache/bookkeeper"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="bookkeeper-release-$pkgver.tar.gz::https://github.com/apache/bookkeeper/archive/refs/tags/release-$pkgver.tar.gz"
builddir="$srcdir/bookkeeper-release-$pkgver/stream/clients/python"
options="!check" # test requires bookkeeper server

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
befe66a0800c939ff2ca65dd05d29141c56fa0b1af8f8445bef6abca5f6c6dfabdb652e40cbdc4a2535089da0e77fd9a927ab9d9c6c86c8d05f8ba98a56529d0  bookkeeper-release-4.17.1.tar.gz
"
